home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / zs20b.zip / ZUNTAR.BA_ / ZUNTAR.BAT
DOS Batch File  |  1994-11-20  |  979b  |  31 lines

  1. @echo off
  2. REM ZUNTAR -------------------------------------
  3. REM Batch file to use TARX with the ZS Shell
  4. REM %1 is the TAR file name
  5. REM %2 is the ZIP file to create
  6. REM 
  7. REM We use a temp directory named 897436
  8. REM make sure you don' t use such a directory
  9. REM to avoid a possible blanking...
  10. REM --------------------------------------------
  11. REM Goto the Zip Studio EXTERN directory
  12. REM We use it to keep some space for the
  13. REM command line. (Please check GO_ZSHL.BAT)
  14. REM to adapt it to your configuration).
  15. CALL GO_ZSHL.BAT
  16. REM Build a temp subdirectory
  17. MD 897436
  18. CD 897436
  19. REM Untar the files to this directory
  20. CALL TARX.BAT %1 *.*
  21. REM Going to the default directory
  22. CD..
  23. REM Rezip the files to the destname$
  24. PKZIP -a-p-r %2 897436\*.*
  25. REM Deleting the temp directory ----------------
  26. REM Available with MSDOS 6.0, for the previous
  27. REM release use DEL *., DEL *.? .. and so on.
  28. REM --------------------------------------------
  29. DELTREE /Y 897436
  30.  
  31.